<?php
/*========================================= JooSam =========================================/
/																							/
/	Extention:		JooSam																	/
/	Created by:		Broadcastweb.eu - Paules												/
/	Site:			http://www.broadcastweb.eu												/
/	Email:			support@broadcastweb.eu													/
/	Copyright:		2011 - 2012 (c) Broadcastweb.eu											/
/	License:		CC BY-NC-ND 3.0 ~ http://creativecommons.org/licenses/by-nc-nd/3.0/		/
/	File Version:	0003																	/
/																							/
/========================================== JooSam ========================================*/
// Joomla security
defined('_JEXEC') or die;
jimport('joomla.application.component.modellist');

class JoosamModelReqevts extends JModelList{
	
	// Get SQL Data
	protected function getListQuery(){

		$editid = JooSamHelper::currSrvEdit();
		$edits = $editid['id'];
		$db = JFactory::getDBO();
		$query = $db->getQuery(true);
		$query->select('*');
		$query->from('#__joosam_evtreq');
		$query->where('srv_id = '.(int) $edits);
		$query->order('id asc');
		return $query;
	}
}